<?php 

require_once 'config.php';

$noticia=DB::fetchTodos("*","noticias","id={$_POST['id']}");

?>

<details class="article-info details metadata">
	<span class="date"><?php echo $noticia[0]["data"]; ?></span>
	<span class="article-author">Escrito por Bagdad Café</span>
</details>

<h2 class="article-title styled-header">
	<a href="#"><?php echo $noticia[0]["titulo"]; ?></a>
</h2>

<div class="article-body">
	<p><a class="thumbnail" href="admin/<?php echo $noticia[0]["arquivo"]; ?>" rel="lightbox[]" title="Image">
	<img src="admin/<?php echo $noticia[0]["arquivo"]; ?>" alt="Image" width="420" height="177" /></a>
		<?php echo $noticia[0]["texto"]; ?>
</div>
